home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Feb 90 / MacApp.Tech$ 2⁄2⁄90 / 0572-Re OVERRIDEing TAppl-Jan90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.1 KB  |  30 lines  |  [TEXT/GEOL]

  1. Item    3059224                         30-Jan-90        00:42PST
  2.  
  3. From:   MOOF                            Rollin, Keith A
  4.  
  5. To:     D1382                           Pillar, Chris Ovard,PRT
  6.         MACAPP.TECH$                    MacApp Technical
  7.  
  8. Sub:    RE>OVERRIDEing TApplicati
  9.  
  10. Attn: Pillar, Chris Ovard,PRT
  11. SentBy: Keith Rollin
  12.          Reply to:   RE>OVERRIDEing TApplication
  13. Tom,
  14.  
  15. The reason for this problem (where the segments that contain your overrides
  16. are unloaded) is that PollEvent calls UnloadAllSegments. If you call the
  17. INHERITED PollEvent, and your override is not in a permanently resident
  18. segent, then that segment will be set purgeable and moveable. If something
  19. happens to move memory, your segment will be moved, and you won't be able to
  20. return to it.
  21.  
  22. I'm sure that something similar is happening with the other routines:
  23. HandleEvent, WMgrToWindow, CloseWMgrWindow, and Close. Somewhere along the
  24. way, your segments are getting unloaded, either near where you make these
  25. calls, or as a side effect of their being called.
  26.  
  27. - Keith Rollin
  28. - Apple Developer Technical Support (MACDTS)
  29.  
  30.